package com.imay.live.model;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.imay.live.adapter.RecentContactAdapter;

/**
 * Created by  nick on 2017/4/20 0020.
 */

public class SystemNoticeModel implements MultiItemEntity {

    private long id;

    private int contentType;

    private String content;

    private long contentId;

    private String contentParameters;

    private int createTime;

    private int isRead;

    private int unReadNum;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getContentType() {
        return contentType;
    }

    public void setContentType(int contentType) {
        this.contentType = contentType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getContentId() {
        return contentId;
    }

    public void setContentId(long contentId) {
        this.contentId = contentId;
    }

    public String getContentParameters() {
        return contentParameters;
    }

    public void setContentParameters(String contentParameters) {
        this.contentParameters = contentParameters;
    }

    public int getCreateTime() {
        return createTime;
    }

    public void setCreateTime(int createTime) {
        this.createTime = createTime;
    }

    public int getIsRead() {
        return isRead;
    }

    public void setIsRead(int isRead) {
        this.isRead = isRead;
    }

    public int getUnReadNum() {
        return unReadNum;
    }

    public void setUnReadNum(int unReadNum) {
        this.unReadNum = unReadNum;
    }

    public boolean hasReaded(){
        return 2 == isRead;
    }

    public void setReaded(){
        isRead=2;
    }

    @Override
    public int getItemType() {
        return RecentContactAdapter.SYSTEM;
    }
}
